<!DOCTYPE html>
<html lang="zh-cn" xml:lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
    <meta name="renderer" content="webkit"/>
    <meta name="google" content="notranslate" />
    <meta name="msapplication-tap-highlight" content="no">
    <meta http-equiv="x-dns-prefetch-control" content="on">
    <link rel="dns-prefetch" href="//storagecdn.xuetangx.com">
    <link rel="dns-prefetch" href="//storage.xuetangx.com">
    <link rel="dns-prefetch" href="//cdn.mathjax.org">
    <link rel="shortcut icon" href="" type="image/x-icon">
    <link rel="icon" href="" type="image/x-icon">

    <!--
    search.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    　<InputEncoding>UTF-8</InputEncoding>
    　<ShortName>关键词搜索</ShortName>
    　<Description>关键词搜索</Description>
    　<Image height="16" width="16" type="image/vnd.microsoft.icon">images/favicon.ico</Image>
    　<Url type="text/html" template="search.PHP?keyword={searchTerms}" />
    </OpenSearchDescription>
    <link rel="search" title="xuetangx.com" href="search.xml?v1.0" type="application/opensearchdescription+xml">-->
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-transform ">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta name="keywords" content="学堂在线,学堂云,学分课,学分链">
    <meta name="description" content="学堂在线,学堂云,学分课,学分链">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>demo</title>
    <meta content="" name="keywords">
    <link rel="stylesheet" href="//storage.xuetangx.com/public_assets/xuetangx/zyk/xtVideo.min.css">

</head>
<body>
<div id="qa-video-wrap" style="position:relative;width:100%;height:300px;background:#000;"></div>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Layer_1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
<g id="color_x5F_bg">
	<path fill="#ECF2F9" d="M12,24L12,24C5.4,24,0,18.6,0,12l0,0C0,5.4,5.4,0,12,0l0,0c6.6,0,12,5.4,12,12l0,0C24,18.6,18.6,24,12,24z"
		/>
</g>
<path fill="#ACBFCD" d="M17.7,6.5h-1c0-0.9-0.8-1.6-1.6-1.6H7.5C6.7,4.9,6,5.6,6,6.4v0.5C5.3,7,4.9,7.6,4.9,8.2v4.4H6v0.5h10.7V13
	h2.6V8.2C19.3,7.2,18.6,6.5,17.7,6.5z"/>
<path fill="#C6D4DF" d="M18.4,11.1L18.4,11.1c-0.9,0-1.6-0.8-1.6-1.6V8.6c0,0-0.1-0.2-0.1,0c-0.3,0.5-0.8,0.9-1.4,0.9H6.4
	c-0.4,0-0.8,0.3-0.8,0.8v0.9c-0.9,0-1.6,0.8-1.6,1.6c0,0.9,0.7,1.6,1.6,1.6c0.1,3.3,2.6,6.1,5.9,6.3c3.7,0.2,6.8-2.7,6.8-6.3l0,0
	c0.9,0,1.6-0.8,1.6-1.6C20,11.8,19.2,11.1,18.4,11.1z"/>
<g id="Layer_2">
</g>
</svg>
<script type="text/javascript" src="//storage.xuetangx.com/public_assets/xuetangx/js/jquery.min.js"></script>
<!-- <script type="text/javascript" src="//storage.xuetangx.com/public_assets/xuetangx/zyk/xtVideo.min.js"></script> -->
<!-- <script type="text/javascript" src="//storage.xuetangx.com/public_assets/xuetangx/zyk/xtVideo.min.js"></script> -->
<script type="text/javascript" src="xtVideo.js"></script>
<script>
//var quality20 = "https://youku.com-l-youku.com/20190207/20335_d1f19bfb/index.m3u8";
var quality20 = "http://ks3-cn-beijing.ksyun.com/xtrepository/original/1521803328791《胭脂扣》刘岩.mp4";
var videoElement = $('<video preload="true" webkit-playsinline="true" x-webkit-airplay="true" x5-playsinline="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><p>您的浏览器不支持HTML5播放器！</p></video>');
var player = videoElement.appendTo('#qa-video-wrap').xtVideo({
   id: "xxxxx",//视频id
   cid: "789",//课程id
   cc: "yyyy", //金山上传id
   userId: "3445",//心跳打点用user_id
   isDrag: true,//是否可以拖拽进度条
   isAbleOcclusion: false, //是否可以遮挡，默认false不可以遮挡
   isHeart: true,
   autoplay: true,
   hiddenQuestion: true,
   duration: 0, //接口提供-视频播放时长
   volume: {
       value: 0.8
   },
   speed: {
       show: true,
       value: 1.0,
       speedValue: [2.0, 1.5, 1.0, 0.5],
   },
   isShowControls: true,
   quality: {
     show: true,
     src: [{
         name: '高清',
         val: quality20,
         default: true
     }, {
         name: '标清',
         val: quality20
     }]
  },
   caption: {
       show: false
   },
   startTime: 70,
   endTime: 0,
   debug: false
}).on('canplay', function() {
}).on('drag', function(e,data){
	console.log(e, data);
});


videoElement.on("stop-play", function(e){
   $(this)[0].pause();
}.bind(videoElement));
videoElement.show();
</script>
</body>
</html>